package cn.kkcxy.blog.system.mapper.sys;

import cn.kkcxy.blog.core.entity.sys.SysVisitorLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @BelongsProject: kkcxy-blog
 * @BelongsPackage: cn.kkcxy.blog.system.mapper.sys
 * @Author: kkcxy
 * @CreateTime: 2024-09-29 01:19
 * @Description: 系统访问日志Mapper
 * @Version: 1.0
 */
public interface SysVisitorLogMapper extends BaseMapper<SysVisitorLog> {

    /**
     * 获得访问量
     */
    @Select("select count(*) from sys_visitor_log where deleted = 0")
    Integer getVisitorCount();
}
